package com.example.edu.controller;

import com.example.utils.Result;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edu")
public class EduLoginController {

    @PostMapping("/admin/login")
    public Result adminLogin() {
        System.out.println("hhah");
        return Result.ok().data("token", "admin");
    }

    @GetMapping("/admin/info")
    public Result adminInfo() {
        return Result.ok().data("roles", "[admin]").data("name", "admin").data("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
